package assist.domain.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(detachable = "true", identityType=IdentityType.APPLICATION)
public class PlayerAlias
{
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long key;
    
    @Persistent
    private Long playerAliasId;
    
    @Persistent
    private String name; 
    public String getName()
    {
        return this.name;
    }
    public void setName(String name)
    {
        this.name = name;
    }    
    
    /**
     * @param playerId the playerId to set
     */
    public void setPlayerId(Long playerId)
    {
        this.playerAliasId = playerId;
    }
    /**
     * @return the playerId
     */
    public Long getPlayerId()
    {
          return this.playerAliasId;
    }
    /**
     * @param key the key to set
     */
    public void setKey(Long key)
    {
        this.key = key;
    }
    /**
     * @return the key
     */
    public Long getKey()
    {
        return key;
    }
}
